/********************************************************/
/*	Copyright (C) 2012 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_31			*/
/*	File:		MrCpu.h				*/
/********************************************************/

#ifndef _MRCPU_H
#define	_MRCPU_H

#include "MrCmd.h"

typedef struct tagMrCpu
{
	float m_fUsr;
	float m_fNic;
	float m_fSys;
	float m_fIow;
	float m_fIrq;
	float m_fSof;
	float m_fSte;
	float m_fIdl;
	float m_fInt;
}MRCPU_S;

class CMrCpu : public CMrCmd
{
public:
	CMrCpu();
	virtual ~CMrCpu();

	void MrCpuInfo(char* pszResult);

	virtual void* MrCmdResultGet();
	virtual void MrCmdResultReset();
	virtual void MrCmdResultSet(void* pResult);

	virtual void MrCmdDisplay();
	virtual void MrCmdInfo(char* pszResult);
	virtual void MrCmdResultInput(UCHAR* puszBuffer, int iLength);
	virtual int MrCmdResultOutput(UCHAR* puszBuffer, USHORT* pusTotal);

private:
	MRCPU_S m_stCpu;

};

#endif /* _MRCPU_H */
